import {
  HOME_CAROUSEL,
  HOME_ICON_NAV,
  HOME_PRODUCT_LIST,
  RECOMMENDGOODSLIST,
  SEARCH_SIDE_NAV_WH,
  VERIFYINFO
} from './mutations-type'
export default {
  // 轮播图数据
  [HOME_CAROUSEL] (state, data) {
    state.homeCarouseList = data
  },
  // 图标导航
  [HOME_ICON_NAV] (state, data) {
    state.homeIconNavList = data
  },
  // 商品衣服列表
  [HOME_PRODUCT_LIST] (state, data) {
    state.homeProductList = data
  },
  // 推荐商品列表
  [RECOMMENDGOODSLIST] (state, data) {
    state.recommendGoodsList.push(...data)
    console.log(data)
  },
  // 搜索页导航
  [SEARCH_SIDE_NAV_WH] (state, data) {
    state.rearchSideNavData = data
    console.log(data)
    // debugger
  },
  // 验证码获取
  [VERIFYINFO] (state, data) {
    state.verify = data
    console.log(data)
  }
}
